package models
{
	public class Connection extends Resource
	{
		public function Connection(email:String = "", password:String = "") {
			super(new XML('<connection />'));
			_node = new XML('<connection email="' + email + '" password="' + password + '" />');
		}
		
		public function set email(email:String) : void {
			_node.@email = email;
		}
		
		public function set password(password:String) : void {
			_node.@password = password;
		}
		
		public function get email() : String {
			return _node.@email;
		}
		
		public function get password() : String {
			return _node.@password;
		}
	}
}